package com.yonyou.pmclouds.workstartreport.process;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.workstartreport.entity.WorkStartVO;

/**
 * 校验开工报告必输项
 */
public class WorkStartInsertCheckProcessor implements SingleProcessor<WorkStartVO> {

    @Override
    public void process(WorkStartVO vo, WorkStartVO orig) throws BusinessException {
        if(vo == null){
            throw new BusinessException("单据不能为空！");
        }
        if(vo.getPkEnterprise() == null){
            throw new BusinessException("施工单位不能为空！");
        }
        if(vo.getStartdate()==null){
            throw new BusinessException("开工日期不能为空");
        }




    }
}
